<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
        <img src="123.png" alt="加载失败">

        <script>
            let Score = document.querySelector('img');
            Score.onclick = function() {
                if(Score.src.indexOf("123.png") >= 0) {
                    Score.src = "456.png";
                }else if(Score.src.indexOf("456.png") >= 0) {
                    Score.src = "123.png";
                }
            }
        </script>
</body>
</html>